package microcredit.gui.util;

import java.awt.Component;

import javax.swing.JOptionPane;

public class MessageUtilities {

	public static void showInformation(String title, String message) {
		JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(null), message, title, JOptionPane.INFORMATION_MESSAGE);
	}
	
	public static void showInformation(Component parent, String title, String message) {
		JOptionPane.showMessageDialog(parent, message, title, JOptionPane.INFORMATION_MESSAGE);
	}
	
}
